/*******************************************************************************
* Project: QSAR(Cute Software Architecture) 
*
* Copyright: Copyright(C) 2024 by YuetingBen, All Rights Reserved
*
* File name: Fee.c
*
* Brief: ;
*
* Author: Yueting.Ben
*
* Module: Fee
*
*******************************************************************************/

/** HEADER FILES **/
#include "Fee.h"


/** MACRO DEFINITION **/


/** TYPEDEF DEFINITION **/


/** LOCAL DATA DECLARATION **/


/** GLOBAL DATA DECLARATION **/


/** LOCAL FUNCTION DECLARATION **/


/** GLOBAL FUNCTION DECLARATION **/
void Fee_GetVersionInfo(
    Std_VersionInfoType* versionInfo
);

Std_ReturnType Fee_Read(
    uint16 BlockNumber,
    uint16 BlockOffset, 
    uint8* DataBufferPtr, 
    uint16 Length
);

Std_ReturnType Fee_Write(
    uint16 BlockNumber, 
    const uint8* DataBufferPtr
);

/** LOCAL DATA **/


/** GLOBAL DATA **/


/** LOCAL FUNCTION **/


/** GLOBAL FUNCTION **/

/*******************************************************************************
* -Name            Fee_GetVersionInfo
* -Brief           Returns the version information of this module 
* -Details         None
* -Param[out]      versioninfo: Pointer to the version information of this module
* -Return          None          
*******************************************************************************/
void Fee_GetVersionInfo(
    Std_VersionInfoType* versionInfo
)
{
    versionInfo->vendorID = (uint16)YSAR_VENDOR_ID;
    versionInfo->moduleID = (uint8)FEE_MODULE_ID;
    versionInfo->sw_major_version = (uint8)FEE_SW_MAJOR_VERSION;
    versionInfo->sw_minor_version = (uint8)FEE_SW_MINOR_VERSION;
    versionInfo->sw_patch_version = (uint8)FEE_SW_PATCH_VERSION;
}

/*******************************************************************************
* -Name            Fee_Read
* -Brief           Reads Length bytes of block Blocknumber at offset BlockOffset into the buffer DataBufferPtr
* -Details         None
* -Param[in]       BlockNumber: Number of logical block, also denoting start address of that block in EEPROM
* -Param[in]       BlockOffset: Read address offset inside the block
* -Param[in]       Length: Number of bytes to read
* -Param[out]      DataBufferPtr: Pointer to data buffer
* -Return          E_OK: The requested job has been accepted by the module
                   E_NOT_OK: The requested job has not been accepted by the EA module
*******************************************************************************/
Std_ReturnType Fee_Read(
    uint16 BlockNumber,
    uint16 BlockOffset, 
    uint8* DataBufferPtr, 
    uint16 Length
)
{

}


/*******************************************************************************
* -Name            Fee_Write
* -Brief           Reads Length bytes of block Blocknumber at offset BlockOffset into the buffer DataBufferPtr
* -Details         None
* -Param[in]       BlockNumber: Number of logical block, also denoting start address of that block in EEPROM
* -Param[in]       DataBufferPtr: Pointer to data buffer
* -Return          E_OK: The requested job has been accepted by the module
                   E_NOT_OK: The requested job has not been accepted by the EA module       
*******************************************************************************/
Std_ReturnType Fee_Write(
    uint16 BlockNumber, 
    const uint8* DataBufferPtr
)
{
    
}


